import { useDebounce } from './hooks.js';
import { useEffect } from 'react';

function App() {
    // const [instance] = useWindowScroll()

    // useEffect(() => {
    //     console.log('滚动条位置：', instance) 
    // })
    const handle = () => {
        console.log('hello');
    }
    return (    
        <div style={{height: '200vh'}} onClick={useDebounce(handle)}>Hello</div>
    )
}
export default App